package foodserver;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.subway.babynote.syncdata.ClientDataRecordBase;
import com.subway.babynote.syncdata.ClientDataRecord.user_auth_info;

import querysrc.query_contact;


/**
 * Servlet implementation class getcontact
 */

public class getcontact extends getbase {
	private static final long serialVersionUID = 1L;
	private query_contact qa = null;
       
    /**
     * @see getbase#getbase()
     */
    public getcontact() {
        super();
        // TODO Auto-generated constructor stub
    }
	
	@Override
	protected void initialize_subquery() {
		// TODO Auto-generated method stub
		qa = new query_contact(this.sqlconhandler);
		
	}

	@Override
	protected void destory_subquery() {
		// TODO Auto-generated method stub
		this.release_query(qa);
	}

	@Override
	protected List<ClientDataRecordBase> get_data(user_auth_info uai) {
		// TODO Auto-generated method stub
		return qa.get_contacts();
	}

}
